package yto.freemarker.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import yto.freemarker.springcloud.filter.UserLoginZuulFilter;

@SpringBootApplication
@EnableZuulProxy
public class ServerApiGatewayFilterApplication {


    public static void main(String[] args) {
        SpringApplication.run(ServerApiGatewayFilterApplication.class, args);
    }

    @Bean
    public UserLoginZuulFilter userLoginZuulFilter() {
        return new UserLoginZuulFilter();
    }
}
